package com.thankcreate.geekchat.editors;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;

import com.thankcreate.model.Contact;
import com.thankcreate.model.ContactEntry;

public class ChatEditorInput implements IEditorInput{

	private ContactEntry contactEntry;
	
	public ContactEntry getContactEntry() {
		return contactEntry;
	}

	public ChatEditorInput(ContactEntry contactEntry) {
		super();
		this.contactEntry = contactEntry;
	}

	public void setContactEntry(ContactEntry contactEntry) {
		this.contactEntry = contactEntry;
	}

	@Override
	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public boolean exists() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public ImageDescriptor getImageDescriptor() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return getContactEntry().getName();
	}

	@Override
	public IPersistableElement getPersistable() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getToolTipText() {
		// TODO Auto-generated method stub
		return getName();
	}
	
}
